package com.rainng.coursesystem.repository;

import com.rainng.coursesystem.model.NotificationItem;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface NotificationRepository extends JpaRepository<NotificationItem, Long> {
    List<NotificationItem> findAllByOrderByCreatedAtDesc();
}